#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<time.h>
#include<stdlib.h>

#define ROW 3 //用define定义的二维数组大小
#define COL 3 //在此处可以更方便的修改棋盘的大小

//棋盘初始化
void InitBoard(char board[ROW][COL], int row, int col);

//棋盘打印
void DisplayBoard(char board[ROW][COL], int row, int col);

//玩家下棋
void PlayerMove(char board[ROW][COL], int row, int col);

//电脑下棋
void ComputerMove(char board[ROW][COL], int row, int col);

//判断输赢
char IsWin(char board[ROW][COL], int row, int col);